package cn.stylefeng.guns.sys.modular.system.ApiEntity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
@Data
public class Mt {


    /**
     * code : 200
     * msg : 成功
     * content : {"status":10,"couponEndTime":"2024-03-17 23:59:59","realAmount":0.1,"dealType":2,"dealId":"689352935","dealTitle":"MayDay海鲜茄子煲1份","dealPrice":0.1,"dealValue":0.2,"userPhoneTail":"0745","dealSkuMappingDetail":{"count":1,"vendorSkus":["2006141037019"]},"giftSkuMappingDetail":null,"dealPromotionMappingDetail":null}
     */

    private int code;
    private String msg;
    private ContentBean content;

    public static class ContentBean {
        /**
         * status : 10
         * couponEndTime : 2024-03-17 23:59:59
         * realAmount : 0.1
         * dealType : 2
         * dealId : 689352935
         * dealTitle : MayDay海鲜茄子煲1份
         * dealPrice : 0.1
         * dealValue : 0.2
         * userPhoneTail : 0745
         * dealSkuMappingDetail : {"count":1,"vendorSkus":["2006141037019"]}
         * giftSkuMappingDetail : null
         * dealPromotionMappingDetail : null
         */
        /**
         * 状态，10可用 20不可用
         */
        private int status;

        private String couponEndTime;
        /**
         * 商家实收金额（不考虑平台服务费）
         */
        private BigDecimal realAmount;
        /**
         * 美团团单类型，1:代金券 2:套餐券 4:霸王餐券
         */
        private int dealType;
        /**
         * 美团团单Id
         */
        private String dealId;
        /**
         * 美团团单名称
         */
        private String dealTitle;
        /**
         * 售卖价格
         */
        private double dealPrice;
        /**
         * 面额
         */
        private double dealValue;
        /**
         * 购买团购券的用户手机尾号
         */
        private String userPhoneTail;

        private DealSkuMappingDetailBean dealSkuMappingDetail;

        private Object giftSkuMappingDetail;
        private Object dealPromotionMappingDetail;

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getCouponEndTime() {
            return couponEndTime;
        }

        public void setCouponEndTime(String couponEndTime) {
            this.couponEndTime = couponEndTime;
        }

        public BigDecimal getRealAmount() {
            return realAmount;
        }

        public void setRealAmount(BigDecimal realAmount) {
            this.realAmount = realAmount;
        }

        public int getDealType() {
            return dealType;
        }

        public void setDealType(int dealType) {
            this.dealType = dealType;
        }

        public String getDealId() {
            return dealId;
        }

        public void setDealId(String dealId) {
            this.dealId = dealId;
        }

        public String getDealTitle() {
            return dealTitle;
        }

        public void setDealTitle(String dealTitle) {
            this.dealTitle = dealTitle;
        }

        public double getDealPrice() {
            return dealPrice;
        }

        public void setDealPrice(double dealPrice) {
            this.dealPrice = dealPrice;
        }

        public double getDealValue() {
            return dealValue;
        }

        public void setDealValue(double dealValue) {
            this.dealValue = dealValue;
        }

        public String getUserPhoneTail() {
            return userPhoneTail;
        }

        public void setUserPhoneTail(String userPhoneTail) {
            this.userPhoneTail = userPhoneTail;
        }

        public DealSkuMappingDetailBean getDealSkuMappingDetail() {
            return dealSkuMappingDetail;
        }

        public void setDealSkuMappingDetail(DealSkuMappingDetailBean dealSkuMappingDetail) {
            this.dealSkuMappingDetail = dealSkuMappingDetail;
        }

        public Object getGiftSkuMappingDetail() {
            return giftSkuMappingDetail;
        }

        public void setGiftSkuMappingDetail(Object giftSkuMappingDetail) {
            this.giftSkuMappingDetail = giftSkuMappingDetail;
        }

        public Object getDealPromotionMappingDetail() {
            return dealPromotionMappingDetail;
        }

        public void setDealPromotionMappingDetail(Object dealPromotionMappingDetail) {
            this.dealPromotionMappingDetail = dealPromotionMappingDetail;
        }

        public static class DealSkuMappingDetailBean {
            /**
             * count : 1
             * vendorSkus : ["2006141037019"]
             */

            /**
             * 订单菜品数量（需要支持例如3选1或3选3，这里是1或3，不支持3选2；
             * 不考虑此场景的商家，这里是1）
             */
            private int count;
            /**
             * 订单菜品Sku
             *
             * 1.如果是3选1：
             * 则vendorSkus=[a,b,c] count=1
             * 2.如果是3选3：
             * 则vendorSkus=[a,b,c] count=3
             * 3.不考虑此场景的商家：
             * 则 vendorSkus=[a] count=1
             */
            private List<String> vendorSkus;

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public List<String> getVendorSkus() {
                return vendorSkus;
            }

            public void setVendorSkus(List<String> vendorSkus) {
                this.vendorSkus = vendorSkus;
            }
        }
    }
}
